<template>
  <!-- 行业应用 -->
  <section class="section_box3 scroll" data-index="3" id="3">
    <span class="big_title flexcc">行业应用</span>
    <p class="hint">
      不同应用场景操作关键点反复提炼 让你轻松复用到实操中快速提升技能点！
    </p>
    <!-- Swiper -->
    <swiper class="swiper-container" v-bind:options="swiperTwo" ref="mySwiper">
      <swiper-slide
        class="swiper-slide"
        v-for="(item, index) in swiperData"
        :key="index"
      >
        <div class="case_item">
          <p class="blue20"></p>
          <div class="center_case flexjs">
            <span class="left">
              <img :src="item.img" alt="" />
            </span>
            <div class="right">
              <p>{{ item.title }}</p>
              <p>
                {{ item.des }}
              </p>
            </div>
          </div>
          <!-- <span class="btn flexcc go_box more">立即报名</span> -->
        </div>
      </swiper-slide>
      <!-- Add Pagination -->
      <div class="swiper-pagination" slot="pagination"></div>
      <!-- Navigation -->
      <div class="swiper-button-prev" slot="button-prev"></div>
      <div class="swiper-button-next" slot="button-next"></div>
    </swiper>
    <span class="btn flexcc go_box more">立即报名</span>
  </section>
</template>
<script>
import { swiper, swiperSlide } from "vue-awesome-swiper";
import "swiper/css/swiper.min.css";
export default {
  name: 'section-box3',
  data() {
    return {
      swiperData: [{
        img: '/imgs/swiper_bg1.png',
        title: '自动化设备的安装与维护',
        des: '通过大量的自动化设备安装调试的训练，帮助你掌握自动化设备的安装与维护技术。掌握此项技术后，可匹配市面上的安装与调试、售后服务等岗位。',
      }, {
        img: '/imgs/swiper_bg2.png',
        title: '控制程序的调试与维护',
        des: '通过各个实际案例，进行控制程序的调试与维护训练，帮助你掌握控制程序系统的调试技术。掌握此技术，可匹配PLC调试工程师、助理电气工程师等岗位。',
      }, {
        img: '/imgs/swiper_bg3.png',
        title: '机器人的调试与维护',
        des: '掌握机器人的基础理论后，反复进行机器人的编程和调试训练，帮助你掌握机器人的调试和维护技术。掌握此技术，可匹配机器人操作员、机器人调试维护等岗位。',
      }, {
        img: '/imgs/swiper_bg4.png',
        title: 'PLC程序开发',
        des: '通过理论学习，掌握PLC的编程和基础原理，再使用学习机箱和各类设备，掌握程序编程、程序设计、协同开发等技术。掌握此技术后，可匹配PLC工程师等岗位。',
      }, {
        img: '/imgs/swiper_bg5.png',
        title: '自动化设备电气开发',
        des: '以实际的机台为蓝本，进行自动化设备的电气开发，全面了解系统设计、绘制图纸、设备选型、PLC编程、设备安装调试、文档交付的全流程。手把手的教学项目开发，可轻松面对实际的工作场景。掌握此技术后，可匹配自动化工程师等岗位。',
      }, {
        img: '/imgs/swiper_bg6.png',
        title: '机器视觉&联调',
        des: '以工业自动化中最火热的机器人视觉案例教学，助力掌握机器人的搬运、码垛、焊接、涂胶等典型应用。可将机器人和视觉技术应用在自动化设备的开发当中，为PLC工程师提供更多核心竞争力。',
      }],
      swiperTwo: {
        slidesPerView: 1,
        spaceBetween: 30,
        loop: true,
        grabCursor: true, //手型
        autoplay: {
          delay: 2000, //自动播放速度
          disableOnInteraction: false //鼠标移上去时是否还继续播放
        },
        pagination: {
          el: '.swiper-pagination',
          clickable: true,
        },
        navigation: {
          nextEl: '.swiper-button-next',
          prevEl: '.swiper-button-prev',
        },
      },
    }
  },
  components: {
    swiper,
    swiperSlide,
  },
  mounted() {
  },
  methods: {
  },
  computed: {
    swiper() {
      return this.$refs.mySwiper.swiper;
    },
  },
}
</script>

<style lang="scss">
@import "./../assets/scss/base.scss";
@import "./../assets/scss/mixin.scss";
.section_box3 {
  position: relative;
  padding-top: 30px;
  background: #f6faff;

  .case_item {
    margin-top: 108px;
    height: 284px;
    background: #ffffff;
    box-shadow: 0px 12px 24px rgba(31, 65, 199, 0.2);

    .blue20 {
      height: 20px;
      background: #3b62db;
      box-shadow: 0px 24px 48px rgba(31, 65, 199, 0.2);
    }

    .center_case {
      padding: 0 96px 0 84px;
      height: 100%;

      .left {
        position: relative;
        width: 458px;
        height: 286px;

        img {
          position: relative;
          margin-top: -60px;
          width: auto;
          height: 286px;
          border-radius: 20px;
        }
      }

      .right {
        margin-left: 24px;
        padding-top: 33px;
        height: 100%;
        text-align: left;

        p {
          font-size: 18px;
          line-height: 24px;
          letter-spacing: 0.25px;
          color: #28293d;
        }

        p:first-child {
          height: 40px;
          font-size: 30px;
          line-height: 40px;
          margin-bottom: 26px;
        }
      }
    }
  }
  .btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 60px;
    z-index: 1;
    width: 218px;
    height: 58px;
    line-height: 58px;
    background: linear-gradient(90deg, #ff6235 0%, #ff7646 100%);
    box-shadow: 0px 4px 8px rgba(255, 116, 68, 0.25),
      0px 12px 24px rgba(255, 116, 68, 0.5);
    border-radius: 50px;
    font-size: 20px;
    color: #ffffff;
  }
  .swiper-wrapper {
    width: 100%;
    height: 100%;
    padding-bottom: 90px;
  }

  .swiper-slide {
    flex-direction: column;
    text-align: center;
    font-size: 18px;
    background: #f6faff;

    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }
  .swiper-button-prev:after {
    content: " ";
  }

  .swiper-button-next:after {
    content: " ";
  }
  .swiper-button-prev {
    width: 36px;
    height: 36px;
    left: 24px;
    top: 227px;
    background: url(/imgs/prev1.png) 0px center no-repeat;
    background-size: 100% 100%;
    z-index: 1;
  }
  .swiper-button-next {
    width: 36px;
    height: 36px;
    right: 36px;
    top: 227px;
    background: url(/imgs/next1.png) 0px center no-repeat;
    background-size: 100% 100%;
    z-index: 1;
  }
  span.swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 30px;
    height: 10px;
    background: linear-gradient(90deg, #3860d9 0%, #1c3cc7 100%);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.04),
      0px 2px 6px rgba(0, 0, 0, 0.04), 0px 0px 1px rgba(0, 0, 0, 0.04);
    border-radius: 10px;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    width: auto;
    left: 246px;
    bottom: 104px;
  }
}
</style>